package fr.cnam.ratpProject.client.activities.searchStation;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.gwt.place.shared.Prefix;

import fr.cnam.ratpProject.sharedDatas.Station;

public class ShowStationPlace  extends Place {

	private String name;

    public ShowStationPlace(String token) {
        this.name = token;
    }

    public String getName() {
        return name;
    }
    
    public Station getStation() {
		return station;
	}

	public void setStation(Station station) {
		this.station = station;
	}

	private Station station;
	
	@Prefix("showStationPlace")
	public static class ShowStationPlaceTokenizer implements PlaceTokenizer<ShowStationPlace> {

		@Override
		public ShowStationPlace getPlace(String token) {
			return new ShowStationPlace(token);
		}

		@Override
		public String getToken(ShowStationPlace place) {
			return place.getName();
		}

	}

	


}
